home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / AVOGADRO / CHEMISTRY / UNITCONV / !UnitConv / !Run < prev    next >
Text File  |  1996-05-15  |  978b  |  36 lines

  1. | > !UnitConv.!Run
  2. |
  3. | Run File for unit conversion
  4. | by Chris Johnson
  5. |
  6. RMEnsure UtilityModule 3.10 Error This application is only suitable for use with RISC OS 3.10 or later versions
  7. |
  8. | Follow PRM (4:497) advice and prevent multiple running
  9. |
  10. If "<UnitConv$Running>" = "yes" Then Error UnitConv is already running
  11. |
  12. |
  13. | Find path to file
  14. Set UnitConv$Dir <Obey$Dir>
  15. Set UnitConvRM$Path <Obey$Dir>.rm.,system:modules.
  16. |
  17. IconSprites <Obey$Dir>.!Sprites
  18. |
  19. |
  20. |
  21. set temp$flag 1
  22. RMEnsure ABCLibrary 0 set temp$flag 0
  23. RMensure ABCLibrary 4.00 if "<temp$flag>" = "1" Then Error 0 Old ABCLib installed Else RMLoad UnitConvRM:ABCLib
  24. RMensure ABCLibrary 4.00 Error You need the ABClibrary ver 4.00 or later installed
  25. unset temp$flag
  26. |
  27. RMEnsure CJWimpUtil 0.18 RMLoad UnitConvRM:cjwimpUtil
  28. RMEnsure CJwimpUtil 0.18 Error You need the CJWimpUtil module (0.18 or later) installed
  29. |
  30. | Check memory allocation
  31. WimpSlot -min 60K -max 60K
  32. |
  33. | Now start program
  34. Run <UnitConv$Dir>.!RunImage
  35.